package varton.simple;

public class SimpleFactory {
    public Shoes newInstance(String brand){
        if("Adidas".equalsIgnoreCase(brand)){
            return new Adidas();
        }else if ("Nike".equalsIgnoreCase(brand)){
            return new Nike();
        }else if ("Anta".equalsIgnoreCase(brand)){
            return new Anta();
        }
        return null;
    }
}
